import request from '@/utils/request'

export function getMemberList (data) {
  return request({
    url: '/api/member/index',
    method: 'post',
    data
  })
}

export function destroyMember (data) {
  return request({
    url: '/api/member/destroy',
    method: 'post',
    data
  })
}

export function showMember (data) {
  return request({
    url: '/api/member/show',
    method: 'post',
    data
  })
}

export function reMember (data) {
  return request({
    url: '/api/member/re',
    method: 'post',
    data
  })
}

export function updateMember (data) {
  return request({
    url: '/api/member/personalUpdate',
    method: 'post',
    data
  })
}

export function getEnterpriseList (data) {
  return request({
    url: '/api/enterprise/index',
    method: 'post',
    data
  })
}

export function destroyEnterprise (data) {
  return request({
    url: '/api/enterprise/destroy',
    method: 'post',
    data
  })
}

export function showEnterprise (data) {
  return request({
    url: '/api/enterprise/show',
    method: 'post',
    data
  })
}

export function updateEnterprise (data) {
  return request({
    url: '/api/member/enterpriseUpdate',
    method: 'post',
    data
  })
}

export function restMemberPassword (data) {
  return request({
    url: '/api/member/restPassword',
    method: 'post',
    data
  })
}

export function reEnterprise (data) {
  return request({
    url: '/api/enterprise/re',
    method: 'post',
    data
  })
}
